Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop premature warnings, including nix.settings migration #163451

Merged
merged 6 commits into from
Mar 21, 2022

Conversation

roberth
Copy link
Member

@roberth roberth commented Mar 9, 2022

Description of changes

Some deprecations should not take effect immediately.
This adds lib code to support the deprecation process and applies it to nix.settings, which has been causing a barrage of warnings for out-of-tree modules that still need to support the stable release, while backporting this change is not an option (and not really a sufficient solution anyway).

Fixes #157667
Works around cachix/cachix#402 and similar issues elsewhere.

Companion PR extending the EOL process: NixOS/release-wiki#32

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

Adds support for sinceRelease
Out-of-tree modules that use it can not upgrade yet.
There's no real hurry and we should avoid warning fatigue.
@roberth
Copy link
Member Author

roberth commented Mar 20, 2022

Please review :)

/marvin opt-in
/status needs_reviewer

@marvin-mk2 marvin-mk2 bot added the marvin label Mar 20, 2022
@marvin-mk2
Copy link

marvin-mk2 bot commented Mar 20, 2022

Hi! I'm an experimental bot. My goal is to guide this PR through its stages, hopefully ending with a merge. You can read up on the usage here.

lib/modules.nix Outdated Show resolved Hide resolved
Let's keep things simple and not poke holes in the
improved migration process.
@kevincox kevincox merged commit 8ce16fc into NixOS:master Mar 21, 2022
@eyJhb eyJhb mentioned this pull request Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sudden renames cause warnings in out-of-tree modules
2 participants